# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=pgsanity
pkgver=0.2.9
pkgrel=5
pkgdesc="Check the syntax of Postgresql SQL files"
url="https://github.com/markdrago/pgsanity"
arch="noarch"
license="MIT"
depends="python3 cmd:ecpg"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="https://github.com/markdrago/pgsanity/archive/v$pkgver/pgsanity-$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="909a12684f386f023e1e1b2ecbd988eba023597509483b467c411690d42fa2da912e8b7634d9ef600ca9a2770f77f02b07bbadb378f50c6c31cc0b8003c9b83b  pgsanity-0.2.9.tar.gz"
